package sunwin.yoms.web.controller.publicty;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;
import sunwin.yoms.domain.publicty.NewsTypeDomain;
import sunwin.yoms.service.publicty.NewsTypeService;

import java.util.List;

/**
 * Created by watson on 2015/7/29.
 */
@Controller
public class NewsTypeController {
    @Autowired
    private NewsTypeService newsTypeService;

    //    @RequestMapping(value = "",method = RequestMethod.GET)
    public ModelAndView NewsTypeManager(NewsTypeDomain newsTypeDomain) {
        List<NewsTypeDomain> newsTypeDomains = newsTypeService.getNewsType(newsTypeDomain);
        ModelAndView mav = new ModelAndView("");
        mav.addObject("", newsTypeDomains);
        return mav;
    }
}
